package com.itheima.inner4;

public class Test {

    public static void main(String[] args) {
        Outer outer= new Outer();
        outer.show();
    }

}

class Outer {
    public void show() {
        class Inner {
            int i = 10;
            public void sing() {
                System.out.println("唱一首");
            }
        }
        Inner inner= new Inner();
        inner.sing();
        System.out.println(inner.i);

    }


}
